package com.app.util.sign;

import com.app.util.md5.MD5Util;

public class SignUtil {

	private String key;

	public SignUtil(String key) { 
		super();
		this.key = key;
	}

	public String getSign(String str) {
		return MD5Util.getMD5(str + key);
	}

	public boolean isGoodSign(String str, String sign) {
		return getSign(str).equals(sign);
	}

	public String getKey() {
		return key;
	}
}
